package com.panghl.service;


import java.io.IOException;
import java.util.Map;

public interface WxPayService {
    /**
     * 生成订单，调用统一下单api -->返回二维码code_url
     * @param productId
     * @return
     */
    Map<String, Object> nativePay(Long productId) throws IOException;


    void cancelOrder(String orderNo) throws IOException;

    String queryOrder(String orderNo) throws IOException;

    void checkOrderStatus(String orderNo) throws IOException;

    void refund(String orderNo, String reason) throws IOException;

    String queryRefund(String refundNo) throws Exception;


    void processRefund(Map<String, Object> bodyMap) throws Exception;


    String queryBill(String billDate, String type) throws Exception;


    String downloadBill(String billDate, String type) throws Exception;


    Map<String, Object> nativePayV2(Long productId, String remoteAddr) throws Exception;
}
